<h1><%= account.nickname %></h1>

<div>
  <table class="data-panel">
    <tr>
      <th>Date</th>
      <th>Type</th>
      <th>Description</th>
      <th>Status</th>
      <th>Amount</th>
    </tr>
    <% account.transactions.forEach( transaction => { %>
      <tr>
        <td><%= transaction.date %></td>
        <td><%= transaction.type %></td>
        <td><%= transaction.description %></td>
        <td><%= transaction.status %></td>
        <td>$<%= transaction.amount %></td>
      </tr>
    <% }); %>
  </table>
</div>